package cn.stylefeng.guns.modular.promotion.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 促销活动表
 * @author allen
 * @date 2021/4/11 17:19
 * @version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "promotion_activity")
public class PromotionActivityEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 促销活动名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 促销活动开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 促销活动结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 促销活动说明备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 促销活动的状态，1：启用，2：停用
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 促销活动的规则
     */
    @TableField(value = "`rule`")
    private String rule;

    /**
     * 促销活动的类型，1：满减；2：多买优惠；3：单品促销；4：满赠促销；5：赠品促销
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_REMARK = "remark";

    public static final String COL_STATUS = "status";

    public static final String COL_RULE = "rule";

    public static final String COL_TYPE = "type";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}